//
//  OrderDetailGoodsTableViewCell.swift
//  ZNHXManagement
//
//  Created by 四川中农 on 2018/9/29.
//  Copyright © 2018年 四川中农. All rights reserved.
//

import UIKit

class OrderDetailGoodsTableViewCell: UITableViewCell {
    
    @IBOutlet weak var viewLine: UIView!
    @IBOutlet weak var goodsImage: UIImageView!
    @IBOutlet weak var goodsName: UILabel!
    @IBOutlet weak var specLabel: UILabel!

    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
    }
    
    func reload(withModel model:GoodsModel){
        self.goodsName.text = model.name
        self.goodsImage.my_setImage(url: model.img, placeholder: Api.placeHolder.rawValue)
        self.specLabel.text = model.num + model.spec + (model.specDesc == "" ? "" : (" x " + model.specDesc))
    }

    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }

}
